<?php

namespace app\common\model;

use think\Model;

class Category extends Model
{
    public static function getList(){
        return self::order('sort','desc')->select();
    }

    public static function hasChild($id){
        return self::where('pid',$id)->find();
    }
}
